Skip to main content

All Questions

Tagged with
2votes
1answer
74views

Mapping two users to host with user namespaces

I'm trying to understand whether it's possible to map two users from a user namespace to two different users on the host. The goal is to replicate the same permissions I have on my host inside a ...
Liric Ramer's user avatar
-2votes
1answer
87views

Is the concept of file permission only applicable when access is via shell?

So in Linux we have a concept of file permission. There are three classes: user, group, and others, and there are three types of permissions: read, write, and execute. Now consider this. You are on a ...
Noob_Guy's user avatar
1vote
2answers
440views

Is /proc/sys comparable to the Windows registry?

Does Linux's /proc/sys expose similar functionality to that of the Windows Registry or are they incomparable? From what I've seen, both allow the user to change various arcane system functions by ...
belkarx's user avatar
0votes
0answers
42views

figure read speed access to a file from a process

Background info for the request:: I have a radius server (freeradius running on Linux) that for each request needs to parse a long text file containing the allowed mac-address. From time to time, it ...
Francesco Colista's user avatar
-1votes
2answers
854views

Why are process management files on Linux stored under /var/run?

Why are process management files on Linux stored under /var/run? For example: $ ls -ltr /var/run/ | grep pid -rw-r--r-- 1 root root 4 Mar 26 14:12 lvmetad.pid -rw-r--r-- 1 ...
yael's user avatar
  • 13.9k
2votes
1answer
440views

How to find which mountpoint current working directory of a process correspond to?

I have a program a.out running from /tmp/test. If I list /proc/$(pgrep a.out)/cwd, it is a symbolic link to /tmp/test. Now, I bind /mnt/othertest onto /tmp/test with mount -o bind /mnt/othertest /tmp/...
rools's user avatar
4votes
2answers
870views

Make one program use a special resolv.conf

I want to cheat a program to use a special /etc/resolv.conf file, that in turn will force it to use a nonstandard nameserver. The obvious solution is to recreate the whole filesystem except one file ...
ZAB's user avatar
  • 211
1vote
5answers
1kviews

Stop program from writing to a deleted file

One of our systems has a growing log file (we will be addressing) but currently the application owner will delete the file with rm then wait for the next maintenance window to reboot. I find myself ...
RunThor's user avatar
4votes
1answer
1kviews

Sort deleted (but still open) files by size

This gives you list of deleted files in your filesystem occupying space (as still open): find /proc/*/fd -ls 2>/dev/null | grep '(deleted)' However piping filenames of file descriptors return size ...
Grzegorz Wierzowiecki's user avatar
8votes
1answer
4kviews

In FUSE, how do I get the information about the user and the process that is trying to read/write in the virtual file system? [closed]

Say I created a FUSE filesystem called foo and mounted it at /mnt/foo. If I have a user called myuser that is running vi to open a file in /mnt/foo, what FUSE methods or data structure contains the ...
CuriousKimchi's user avatar
2votes
0answers
235views

Is there a way to give different permissions to different processes that are called from the same user?

I want to be able to have a r,w,x type permission given to specific processes and not to users. Any document I find shows that processes get the same permissions as the user calling it, but I want ...
CuriousKimchi's user avatar
6votes
1answer
822views

lsof misses files

Why does lsof fail to list files I have open. For example I open with the text editor some file in my home directory. $ gedit ~/.python_history lsof does not even work as root $ sudo lsof | grep ...
sdgsrg's user avatar
0votes
1answer
49views

Mechanism of multiple call for one script in the same time

I have the ruby script which is calling from different places in the same time(with defferent options). Is it safely and how this mechanism realized in linux? I mean what happens with file after ...
Eugene's user avatar
3votes
2answers
302views

How to detect out-bound port from PID

I have several applications that run on random ports. How would I take the pid or the file location and find which port it is running on? Example of desired output: www-data/apache = 80 my-awesome-...
Joe John's user avatar

close